﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using FutSA.Data;
using FutSA.Bussiness.Contexts;  

public partial class UsersControls_TimeEmblema : System.Web.UI.UserControl
{
    private void BindData()
    {

    }
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void lnkCadastrar_Click(object sender, EventArgs e)
    {
        try
        {
            TimeEmblema timeEmblema = new TimeEmblema();
            FutSADataSet dataSet = timeEmblema.DataSet;
            FutSADataSet.TimeEmblemaRow timeEmblemaRow = dataSet.TimeEmblema.NewTimeEmblemaRow();
            timeEmblemaRow.Nome = txtNome.Text;
            timeEmblemaRow.ImagemUrl = "http://www.uol.com.br";
            dataSet.TimeEmblema.AddTimeEmblemaRow(timeEmblemaRow);
            timeEmblema.Update(dataSet); 
        }
        catch (Exception)
        {
            throw;
        }
    }
}
